﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace ElencySolutions.ImageMap
{
    [DataContract]
    [KnownType(typeof(Area))]
    public class Area
    {
        [DataMember]
        public string ShapeType { get; set; }

        [DataMember]
        public List<int> Coordinates { get; set; }

        [DataMember]
        public string Url { get; set; }

        [DataMember]
        public string Target { get; set; }

        [DataMember]
        public string AltText { get; set; }

        public Area()
        {
            ShapeType = "poly";
            Coordinates = new List<int>();
            Url = string.Empty;
            Target = string.Empty;
            AltText = string.Empty;
        }
    }
}
